package com.eesujie.catimor.context;

import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface Injector {
    <T> T getInstance(Class<T> type);

    @NotNull
    @SafeVarargs
    static Injector createInjector(@NotNull Class<? extends InjectorConfig>... configs) {
        return InternalInjector.build(List.of(configs));
    }
}
